package br.com.unifebe.tcc.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "Usuario")
public class Usuario implements Serializable{

	private static final long serialVersionUID = 1L;
	@Id
	@SequenceGenerator( name = "cd_usuario", sequenceName = "USUARIO_SEQ" )  
    @GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "cd_usuario" )  
	@Column(name = "cd_usuario", nullable = false )
	private Long id;
	
	@Column(name = "ds_login")
	private String login;
	
	@Column(name = "ds_senha")
	private String senha;
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getSenha() {
		return senha;
	}
	public void setSenha(String senha) {
		this.senha = senha;
	}
	
}
